home *** CD-ROM | disk | FTP | other *** search
/ Programming in Microsoft Windows with C# / Programacion en Microsoft Windows con C#.iso / Codigo / Introducción a Windows Forms / FormProperties / FormProperties.cs next >
Encoding:
Text File  |  2002-05-02  |  777 b   |  25 lines

  1. //---------------------------------------------
  2. // FormProperties.cs ⌐ 2001 by Charles Petzold
  3. //---------------------------------------------
  4. using System.Drawing;
  5. using System.Windows.Forms;
  6.  
  7. class FormProperties
  8. {
  9.      public static void Main()
  10.      {
  11.           Form form = new Form();
  12.  
  13.           form.Text              = "Propiedades del formulario";
  14.           form.BackColor         = Color.BlanchedAlmond;
  15.           form.Width            *= 2;
  16.           form.Height           /= 2;
  17.           form.FormBorderStyle   = FormBorderStyle.FixedSingle;
  18.           form.MaximizeBox       = false;
  19.           form.Cursor            = Cursors.Hand;
  20.           form.StartPosition     = FormStartPosition.CenterScreen;
  21.  
  22.           Application.Run(form);
  23.      }
  24. }
  25.